﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" omit-xml-declaration="yes"/>

  <xsl:param name="operation_url" select="''"/>

  <xsl:template match="/">
    <xsl:apply-templates select="root" />
  </xsl:template>

  <xsl:template match="root">
    <h2>Операции</h2>
    <table class="details account_list">
      <tr>
        <th>Логин</th>
        <th>Пароль</th>
        <th>ФИО</th>
        <th>Активный</th>
        <th>Информация</th>
      </tr>
      <xsl:apply-templates select="userdata" />
    </table>
  </xsl:template>

  <xsl:template match="userdata">
    <tr class="userdata">
      <xsl:attribute name="id">
        <xsl:value-of select="concat('user_', @id)"/>
      </xsl:attribute>
      <td>
        <xsl:value-of select="@User"/>
      </td>
      <td>
        <xsl:value-of select="@Pass"/>
      </td>
      <td>
        <xsl:value-of select="@RealName"/>
      </td>
      <td>
        <xsl:value-of select="@Active"/>
      </td>
      <td>
        <xsl:value-of select="@Info"/>
      </td>
    </tr>
  </xsl:template>

</xsl:stylesheet>
